package com.saumya.robotlegs.model
{
	import flash.filesystem.File;
	
	import org.robotlegs.mvcs.Actor;

	public class SearchedFilesModel extends Actor
	{
		private var searchedForFileType:String='';
		private var allFiles:Array=[];
		private var allFolders:Array=[];
		
		public function SearchedFilesModel()
		{
			//Does Nothing
		}
		
		public function addFile(fileObj:File):void
		{
			this.allFiles.push(fileObj);
		}
		
		public function addFolder(folderObj:File):void
		{
			this.allFolders.push(folderObj);
		}
		
		public function setFileType(type:String):void
		{
			this.searchedForFileType=type;
		}
		
		public function getAllFiles():Array
		{
			return this.allFiles;
		}
		
		public function getAllFolders():Array
		{
			return this.allFolders;
		}
		
		public function getFileType():String
		{
			return this.searchedForFileType;
		}
		
		public function clearAllData():void
		{
			this.allFiles=[];
			this.allFolders=[];
			this.searchedForFileType='';
		}
		
	}
}